package com.guofen.dao;

import com.guofen.pojo.SjqFlocculationProduceMaintenanceWeek;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SjqFlocculationProduceMaintenanceWeekMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SjqFlocculationProduceMaintenanceWeek record);

    int insertSelective(SjqFlocculationProduceMaintenanceWeek record);

    SjqFlocculationProduceMaintenanceWeek selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SjqFlocculationProduceMaintenanceWeek record);

    int updateByPrimaryKey(SjqFlocculationProduceMaintenanceWeek record);

    SjqFlocculationProduceMaintenanceWeek getlatest(@Param("equipment_name") String equipment_name, @Param("maintenance_content") String maintenance_content);

    List<SjqFlocculationProduceMaintenanceWeek> getlastByName(String equipment);

    List<SjqFlocculationProduceMaintenanceWeek> getWeekRecords();

    List<SjqFlocculationProduceMaintenanceWeek> selectAll();

    List<SjqFlocculationProduceMaintenanceWeek> selectByDate(@Param("startDate") String startDate,
                                                              @Param("endDate") String endDate);
}